<template>
  <div>
    <edit-book v-if="kind == $C.MatKind.Book" @cancel="$emit('cancel')"></edit-book>
    <edit-mat v-else @cancel="$emit('cancel')"></edit-mat>
    <!-- <edit-mat @cancel="$emit('cancel')"></edit-mat> -->
  </div>
</template>

<script>
import EditMat from "./EditMat.vue";
import EditBook from "./EditBook.vue";
export default {
  components: {
    EditMat,
    EditBook,
  },
  props: ["kind"]
}
</script>